package cn.com.czpb.client.model.news;

import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.util.List;

/**
 * Created by Administrator on 2017/8/14.
 */

public class CommBean implements MultiItemEntity {

    /**
     * uid : 52
     * nickname : 追风少年
     * ulevel : Lv1
     * avatar_path : http://101.200.174.98/yunzong_jhxt/../files/app/avatar/app_logon.png
     * mediatype : 1
     * commenttype : 1
     * cid : 16
     * content : 票太难抢
     * count : 2
     * praise : 0
     * israise : 0
     * commentlevel : 1
     * dateline : 一天前
     * replyto : {}
     * children : [{"uid":"59","nickname":"185****","ulevel":"Lv1","avatar_path":"http://101.200.174.98/yunzong_jhxt/../files/app/avatar/app_logon.png","mediatype":"0","commenttype":"1","cid":"17","content":"是啊(一级评论)","count":"1","praise":"0","israise":"0","dateline":"一天前","commentlevel":"2","replyto":{},"info":{"contenttype":"1","contentid":"1","title":"12306网站注册推手机双向验证 黄牛暂未破解","rtype":"1","copyfrom":"现代快报","type":"2","imgs":["http://101.200.174.98/yunzong_jhxt/../../files/app/thumb/s_1502274833.jpg"]}},{"uid":"55","nickname":"浪浪浪","ulevel":"Lv1","avatar_path":"http://101.200.174.98/yunzong_jhxt/../files/app/avatar/app_logon.png","mediatype":"0","commenttype":"1","cid":"18","content":"没错(一级评论)","count":"0","praise":"0","israise":"0","dateline":"一天前","commentlevel":"2","replyto":{},"info":{"contenttype":"1","contentid":"1","title":"12306网站注册推手机双向验证 黄牛暂未破解","rtype":"1","copyfrom":"现代快报","type":"2","imgs":["http://101.200.174.98/yunzong_jhxt/../../files/app/thumb/s_1502274833.jpg"]}},{},{},{}]
     */

    private String uid;
    private String nickname;
    private String ulevel;
    private String avatar_path;
    private String mediatype;
    private String commenttype;
    private String cid;
    private String content;
    private String count;
    private String praise;
    private String ispraise;
    private String commentlevel;
    private String dateline;

    private String action;
    private String create_time;

    private ReplytoEntity replyto;
    private List<ChildrenEntity> children;
    private DataEntity data;

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    public DataEntity getData() {
        return data;
    }

    public void setData(DataEntity data) {
        this.data = data;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public void setUlevel(String ulevel) {
        this.ulevel = ulevel;
    }

    public void setAvatar_path(String avatar_path) {
        this.avatar_path = avatar_path;
    }

    public void setMediatype(String mediatype) {
        this.mediatype = mediatype;
    }

    public void setCommenttype(String commenttype) {
        this.commenttype = commenttype;
    }

    public void setCid(String cid) {
        this.cid = cid;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public void setCount(String count) {
        this.count = count;
    }

    public void setPraise(String praise) {
        this.praise = praise;
    }

    public String getIspraise() {
        return ispraise;
    }

    public void setIspraise(String ispraise) {
        this.ispraise = ispraise;
    }

    public void setCommentlevel(String commentlevel) {
        this.commentlevel = commentlevel;
    }

    public void setDateline(String dateline) {
        this.dateline = dateline;
    }

    public void setReplyto(ReplytoEntity replyto) {
        this.replyto = replyto;
    }

    public void setChildren(List<ChildrenEntity> children) {
        this.children = children;
    }

    public String getUid() {
        return uid;
    }

    public String getNickname() {
        return nickname;
    }

    public String getUlevel() {
        return ulevel;
    }

    public String getAvatar_path() {
        return avatar_path;
    }

    public String getMediatype() {
        return mediatype;
    }

    public String getCommenttype() {
        return commenttype;
    }

    public String getCid() {
        return cid;
    }

    public String getContent() {
        return content;
    }

    public String getCount() {
        return count;
    }

    public String getPraise() {
        return praise;
    }

    public String getCommentlevel() {
        return commentlevel;
    }

    public String getDateline() {
        return dateline;
    }

    public ReplytoEntity getReplyto() {
        return replyto;
    }

    public List<ChildrenEntity> getChildren() {
        return children;
    }

    @Override
    public int getItemType() {
        return 0;
    }
    public static class DataEntity{

        /**
         * cid : 121
         * reply :
         * comment : 将计就计
         * contenttype : 1
         * rtype : 1
         * nid : 5
         * mediatype : 0
         * tid : 3
         * title : 今年“11.11”也是中国人民空军66周年华诞
         * type : 5
         * imgs : ["http://101.200.174.98/yunzong_jhxt/../../files/app/thumb/s_1503054300.jpg"]
         * c_num : 1
         * p_num : 1
         * ispraise : 1
         */

        private String cid;
        private String reply;
        private String comment;
        private String contenttype;
        private String rtype;
        private String nid;
        private String rvalue;
        private String mediatype;
        private String tid;
        private String title;
        private String type;
        private String c_num;
        private String p_num;
        private String ispraise;
        private List<String> imgs;

        public String getRvalue() {
            return rvalue;
        }

        public void setRvalue(String rvalue) {
            this.rvalue = rvalue;
        }

        public void setCid(String cid) {
            this.cid = cid;
        }

        public void setReply(String reply) {
            this.reply = reply;
        }

        public void setComment(String comment) {
            this.comment = comment;
        }

        public void setContenttype(String contenttype) {
            this.contenttype = contenttype;
        }

        public void setRtype(String rtype) {
            this.rtype = rtype;
        }

        public void setNid(String nid) {
            this.nid = nid;
        }

        public void setMediatype(String mediatype) {
            this.mediatype = mediatype;
        }

        public void setTid(String tid) {
            this.tid = tid;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public void setType(String type) {
            this.type = type;
        }

        public void setC_num(String c_num) {
            this.c_num = c_num;
        }

        public void setP_num(String p_num) {
            this.p_num = p_num;
        }

        public void setIspraise(String ispraise) {
            this.ispraise = ispraise;
        }

        public void setImgs(List<String> imgs) {
            this.imgs = imgs;
        }

        public String getCid() {
            return cid;
        }

        public String getReply() {
            return reply;
        }

        public String getComment() {
            return comment;
        }

        public String getContenttype() {
            return contenttype;
        }

        public String getRtype() {
            return rtype;
        }

        public String getNid() {
            return nid;
        }

        public String getMediatype() {
            return mediatype;
        }

        public String getTid() {
            return tid;
        }

        public String getTitle() {
            return title;
        }

        public String getType() {
            return type;
        }

        public String getC_num() {
            return c_num;
        }

        public String getP_num() {
            return p_num;
        }

        public String getIspraise() {
            return ispraise;
        }

        public List<String> getImgs() {
            return imgs;
        }
    }
    public static class ReplytoEntity {
        private String uid;
        private String nickname;
        private String avatar_path;
        private String mediatype;
        private String cid;
        private String content;
        private String count;
        private String praise;
        private String dateline;

        public String getUid() {
            return uid;
        }

        public void setUid(String uid) {
            this.uid = uid;
        }

        public String getNickname() {
            return nickname;
        }

        public void setNickname(String nickname) {
            this.nickname = nickname;
        }

        public String getAvatar_path() {
            return avatar_path;
        }

        public void setAvatar_path(String avatar_path) {
            this.avatar_path = avatar_path;
        }

        public String getMediatype() {
            return mediatype;
        }

        public void setMediatype(String mediatype) {
            this.mediatype = mediatype;
        }

        public String getCid() {
            return cid;
        }

        public void setCid(String cid) {
            this.cid = cid;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public String getCount() {
            return count;
        }

        public void setCount(String count) {
            this.count = count;
        }

        public String getPraise() {
            return praise;
        }

        public void setPraise(String praise) {
            this.praise = praise;
        }

        public String getDateline() {
            return dateline;
        }

        public void setDateline(String dateline) {
            this.dateline = dateline;
        }
    }

    public static class ChildrenEntity implements MultiItemEntity{
        /**
         * uid : 59
         * nickname : 185****
         * ulevel : Lv1
         * avatar_path : http://101.200.174.98/yunzong_jhxt/../files/app/avatar/app_logon.png
         * mediatype : 0
         * commenttype : 1
         * cid : 17
         * content : 是啊(一级评论)
         * count : 1
         * praise : 0
         * israise : 0
         * dateline : 一天前
         * commentlevel : 2
         * replyto : {}
         * info : {"contenttype":"1","contentid":"1","title":"12306网站注册推手机双向验证 黄牛暂未破解","rtype":"1","copyfrom":"现代快报","type":"2","imgs":["http://101.200.174.98/yunzong_jhxt/../../files/app/thumb/s_1502274833.jpg"]}
         */

        private String uid;
        private String nickname;
        private String ulevel;
        private String avatar_path;
        private String mediatype;
        private String commenttype;
        private String cid;
        private String content;
        private String count;
        private String praise;
        private String ispraise;
        private String dateline;
        private String commentlevel;
        private ReplytoEntity replyto;
        private InfoEntity info;

        public String getIspraise() {
            return ispraise;
        }

        public void setIspraise(String ispraise) {
            this.ispraise = ispraise;
        }

        public void setUid(String uid) {
            this.uid = uid;
        }

        public void setNickname(String nickname) {
            this.nickname = nickname;
        }

        public void setUlevel(String ulevel) {
            this.ulevel = ulevel;
        }

        public void setAvatar_path(String avatar_path) {
            this.avatar_path = avatar_path;
        }

        public void setMediatype(String mediatype) {
            this.mediatype = mediatype;
        }

        public void setCommenttype(String commenttype) {
            this.commenttype = commenttype;
        }

        public void setCid(String cid) {
            this.cid = cid;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public void setCount(String count) {
            this.count = count;
        }

        public void setPraise(String praise) {
            this.praise = praise;
        }



        public void setDateline(String dateline) {
            this.dateline = dateline;
        }

        public void setCommentlevel(String commentlevel) {
            this.commentlevel = commentlevel;
        }

        public void setReplyto(ReplytoEntity replyto) {
            this.replyto = replyto;
        }

        public void setInfo(InfoEntity info) {
            this.info = info;
        }

        public String getUid() {
            return uid;
        }

        public String getNickname() {
            return nickname;
        }

        public String getUlevel() {
            return ulevel;
        }

        public String getAvatar_path() {
            return avatar_path;
        }

        public String getMediatype() {
            return mediatype;
        }

        public String getCommenttype() {
            return commenttype;
        }

        public String getCid() {
            return cid;
        }

        public String getContent() {
            return content;
        }

        public String getCount() {
            return count;
        }

        public String getPraise() {
            return praise;
        }



        public String getDateline() {
            return dateline;
        }

        public String getCommentlevel() {
            return commentlevel;
        }

        public ReplytoEntity getReplyto() {
            return replyto;
        }

        public InfoEntity getInfo() {
            return info;
        }

        @Override
        public int getItemType() {
            return 0;
        }

        public static class ReplytoEntity {
            private String uid;
            private String nickname;
            private String avatar_path;
            private String mediatype;
            private String cid;
            private String content;
            private String count;
            private String praise;
            private String dateline;

            public String getUid() {
                return uid;
            }

            public void setUid(String uid) {
                this.uid = uid;
            }

            public String getNickname() {
                return nickname;
            }

            public void setNickname(String nickname) {
                this.nickname = nickname;
            }

            public String getAvatar_path() {
                return avatar_path;
            }

            public void setAvatar_path(String avatar_path) {
                this.avatar_path = avatar_path;
            }

            public String getMediatype() {
                return mediatype;
            }

            public void setMediatype(String mediatype) {
                this.mediatype = mediatype;
            }

            public String getCid() {
                return cid;
            }

            public void setCid(String cid) {
                this.cid = cid;
            }

            public String getContent() {
                return content;
            }

            public void setContent(String content) {
                this.content = content;
            }

            public String getCount() {
                return count;
            }

            public void setCount(String count) {
                this.count = count;
            }

            public String getPraise() {
                return praise;
            }

            public void setPraise(String praise) {
                this.praise = praise;
            }

            public String getDateline() {
                return dateline;
            }

            public void setDateline(String dateline) {
                this.dateline = dateline;
            }
        }

        public static class InfoEntity {
            /**
             * contenttype : 1
             * contentid : 1
             * title : 12306网站注册推手机双向验证 黄牛暂未破解
             * rtype : 1
             * copyfrom : 现代快报
             * type : 2
             * imgs : ["http://101.200.174.98/yunzong_jhxt/../../files/app/thumb/s_1502274833.jpg"]
             */

            private String contenttype;
            private String contentid;
            private String title;
            private String rtype;
            private String copyfrom;
            private String type;
            private List<String> imgs;

            public void setContenttype(String contenttype) {
                this.contenttype = contenttype;
            }

            public void setContentid(String contentid) {
                this.contentid = contentid;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public void setRtype(String rtype) {
                this.rtype = rtype;
            }

            public void setCopyfrom(String copyfrom) {
                this.copyfrom = copyfrom;
            }

            public void setType(String type) {
                this.type = type;
            }

            public void setImgs(List<String> imgs) {
                this.imgs = imgs;
            }

            public String getContenttype() {
                return contenttype;
            }

            public String getContentid() {
                return contentid;
            }

            public String getTitle() {
                return title;
            }

            public String getRtype() {
                return rtype;
            }

            public String getCopyfrom() {
                return copyfrom;
            }

            public String getType() {
                return type;
            }

            public List<String> getImgs() {
                return imgs;
            }
        }
    }
}
